- Description:
This key defines which editing interface CloudCannon will use when you select an option from the + Add button dropdown.
Values can be one of the following:
visual,content, ordata.By default, CloudCannon will open the new file in an appropriate editing interface for that file type.
If CloudCannon cannot determine an appropriate editing interface, it will show a warning.
- Appears in:
└── collections_config └── * └── add_options └── [*] └── Add Option └── editor- Type:
string- Allowed values:
visualcontentdata- Examples:
In this example, we have configured a standard add option for the
peopleCollection that opens new files in the Data Editor.Copied to clipboardcollections_config: people: add_options: - name: Add Staff Member schema: employee icon: face editor: data schemas: employee: path: /.cloudcannon/schemas/employee.yml{ "collections_config": { "people": { "add_options": [ { "name": "Add Staff Member", "schema": "employee", "icon": "face", "editor": "data" } ], "schemas": { "employee": { "path": "/.cloudcannon/schemas/employee.yml" } } } } }